import pytest
import os
import subprocess


if __name__ == '__main__':
    # 运行指定的文件
    # pytest.main(['-s','-v','./testcase/Login/test_addUser.py','--reruns=2'])
    pytest.main()


    # 生成 HTML 报告
    os.system("allure generate ./report/temp -o ./report/html --clean")

    # 启动 Allure 服务
    subprocess.run(["allure", "open", "./report/html"], shell=True)
